package com.sk.app;


import android.app.ActivityGroup;
import android.content.Intent;
import android.content.res.Configuration;

import android.os.Bundle;
import android.view.Window;
import android.widget.TabHost;

public class MyTabHost extends ActivityGroup {
	public TabHost mytabHost;
	protected void onCreate(Bundle savedInstanceState){
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		super.onCreate(savedInstanceState);		
		setContentView(R.layout.mytabhost);
		mytabHost = (TabHost)this.findViewById(R.id.mytab);
		mytabHost.setup();
		mytabHost.setup(this.getLocalActivityManager());
		Intent first = new Intent(MyTabHost.this,TabFirst.class);
		Intent second = new Intent(MyTabHost.this,TabSecond.class);
		Intent third = new Intent(MyTabHost.this,TabThird.class);
		Intent forth = new Intent(MyTabHost.this,TabForth.class);
		Intent fifth = new Intent(MyTabHost.this,TabFifth.class);
		mytabHost.addTab(mytabHost.newTabSpec("tab1").setIndicator(getResources().getString(R.string.tab_1),getResources().getDrawable(android.R.drawable.btn_star_big_on)).setContent(first));
		mytabHost.addTab(mytabHost.newTabSpec("tab2").setIndicator(getResources().getString(R.string.tab_2),getResources().getDrawable(android.R.drawable.btn_star_big_on)).setContent(second));
		mytabHost.addTab(mytabHost.newTabSpec("tab3").setIndicator(getResources().getString(R.string.tab_3),getResources().getDrawable(android.R.drawable.btn_star_big_on)).setContent(third));
		mytabHost.addTab(mytabHost.newTabSpec("tab4").setIndicator(getResources().getString(R.string.tab_4),getResources().getDrawable(android.R.drawable.btn_star_big_on)).setContent(forth));
		mytabHost.addTab(mytabHost.newTabSpec("tab5").setIndicator(getResources().getString(R.string.tab_5),getResources().getDrawable(android.R.drawable.btn_star_big_on)).setContent(fifth));
	}

}
